home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS1097.lzh
/
AMOSLIST
/
000044_amos-request@svcs1.digex.net_Fri Oct 3 12:49:36 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-11-02
|
3KB
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id MAA12268
for <mcox@access.digex.net>; Fri, 3 Oct 1997 12:49:34 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id IAA04111
for amos-out; Fri, 3 Oct 1997 08:58:50 -0400 (EDT)
Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id IAA04104
for <amos-list@svcs1.digex.net>; Fri, 3 Oct 1997 08:58:47 -0400 (EDT)
Received: from mail.redrose.net (mail.redrose.net [204.249.184.22])
by mail4.access.digex.net (8.8.5/8.8.5) with SMTP id IAA18664
for <amos-list@access.digex.net>; Fri, 3 Oct 1997 08:58:45 -0400 (EDT)
Received: (qmail 21158 invoked from network); 3 Oct 1997 12:58:25 -0000
Received: from lp3-7.redrose.net (HELO redrose.net) (mushy-pd@205.246.86.199)
by mail.redrose.net with SMTP; 3 Oct 1997 12:58:25 -0000
From: Mush <mushypd@redrose.net>
Reply-To: mushypd@redrose.net
To: Peter Falkesand <peter.falkesand@vux.alingsas.se>
CC: amos-list@access.digex.net
Date: Fri, 03 Oct 1997 08:58:07 +0500
Message-ID: <yam7215.365.4609936@mail.redrose.net>
In-Reply-To: <199710030432.GAA00597@vux.alingsas.se>
X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
Organization: Mushroom PD - AMOS Public Domain Library
Subject: Re: Sorting routine.
MIME-Version: 1.0
Content-Type: text/plain
Status: O
X-Status:
The man most directly responsible for this twaddle was Peter Falkesand, who
did thus comment on Sorting routine. on the night of 03-Oct-97:
-> Hi!
-> Is there a smooth way to sort 20 variables???
-> and not do like this..
-> --------------------------------
-> If score1_1(1)>score2_1(1)
-> Loke S7+40,Leek(S5+20)
-> endif
-> if score1_2(2)>score2_1(1)
-> loke s7+60,leek(s5+40)
-> endif
-> -------------------------------
Hmm, i have never *ever* tried to do it this way, it would be wayyy to big.
Twinz used a high score table of 3 sets of 10 positions, and i'll go get the
source and paste it into here...
For N=1 To 10
TP=TSCORE(N)
If SCORE>TP : Rem or N=2
For O=10 To N Step -1 : TSCORE(O)=TSCORE(O-1) :
TSCORE$(O)=TSCORE$(O-1) : Next O
TSCORE(N)=SCORE : TSCORE$(N)=TEX$
End If
Next N
The routine finds the position of the highest point in the table it can go (if
any) by running through all possible entries, and its higher value will be
first, and N will be loaded with the current slightly-lower value.
The second part of the routine, shuffles them all down by 1 position, from 1
to
2, 2 to 3 etc. and inserts the value in SCORE in the correct space.
Andrew "Mushroom" Kellett
--
Email: Andy Kellett <mushypd@redrose.net> Team *AMOS* + IAPA Team *AMIGA*
alt.religion.amos - AMOS now on usenet! AMOS Mailinglist also mirrored
World's Largest AMOS Homepages - http://www.mushy-pd.demon.co.uk
Massive FTP site with AMOS/C64 and Mods/Samples + more at
mushy-pd.dyn.ml.org